package com.nbsaas.boot.common.rest.convert;

import com.nbsaas.boot.common.data.entity.Modular;
import com.nbsaas.boot.common.api.domain.simple.ModularSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 模块-列表对象转换器
*/

public class ModularSimpleConvert implements Converter<ModularSimple, Modular> {




@Override
public ModularSimple convert(Modular source) {
    ModularSimple result = new ModularSimple();

                result.setNote(source.getNote());
                result.setName(source.getName());
                result.setBanner(source.getBanner());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setKey(source.getKey());
                result.setLastDate(source.getLastDate());


    return result;
}

}